libmymath.a : mymath.o myprint.o
	ar -rc libmymath.a mymath.o myprint.o

mymath.o : mymath.c
	gcc -c mymath.c -o mymath.o
myprint.o : myprint.c
	gcc -c myprint.c -o myprint.o

.PHONY:staticLib
staticLib:
	mkdir -p staticLib/lib
	mkdir -p staticLib/include
	cp *.a staticLib/lib
	cp *.h staticLib/include

.PHONY:clean
clean:
	rm -rf *.o *.a staticLib